/* @(#)GSBusOrderDetailDeliverVO.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Road Zheng    2006-3-23     新增
 *   Jenny Li      2006-5-30     修改
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSBusOrderDetailDeliverVO implements GSBaseBean{
	public String deliverGoodsId;
	public String deliverGoodsDate;
	public String deliverGoodsTime;
	public String deliverMan;
	public String deliverGoodsPhone;
	public String deliverGoodsCounts;
	public String deliverGoodsConfirmDate;
	public String deliverGoodsConfirmTime;
	public String quantUnit;
	
	
	
	public String getDeliverGoodsTimeInfo(String aDeliverGoodsTime) {
    	String tResult = "";
    	if(aDeliverGoodsTime != null && aDeliverGoodsTime.trim().length() > 0) {
    		if(aDeliverGoodsTime.equals("1")) tResult = "8:00-12:00";
    		else if(aDeliverGoodsTime.equals("2")) tResult = "13:00-18:00";
    		else if(aDeliverGoodsTime.equals("3")) tResult = "全天";
    	}
    	return tResult;
    }
	
	public Object process(ResultSet aResultSet) throws SQLException {
		GSBusOrderDetailDeliverVO tGSOrderVO = new GSBusOrderDetailDeliverVO();
        tGSOrderVO.deliverGoodsId = aResultSet.getString("P1") == null ? "" : aResultSet.getString("P1").trim();
		tGSOrderVO.deliverGoodsDate = aResultSet.getString("P2") == null ? "" : aResultSet.getString("P2").trim();
		tGSOrderVO.deliverGoodsTime = aResultSet.getString("P3") == null ? "" : aResultSet.getString("P3").trim();
		tGSOrderVO.deliverMan = aResultSet.getString("P4") == null ? "" : aResultSet.getString("P4").trim();
		tGSOrderVO.deliverGoodsPhone = aResultSet.getString("P5") == null ? "" : aResultSet.getString("P5").trim();
		tGSOrderVO.deliverGoodsCounts = aResultSet.getString("P6") == null ? "" : aResultSet.getString("P6").trim();
		tGSOrderVO.deliverGoodsConfirmDate = aResultSet.getString("P7") == null ? "" : aResultSet.getString("P7").trim();
		tGSOrderVO.deliverGoodsConfirmTime = aResultSet.getString("P8") == null ? "" : aResultSet.getString("P8").trim();
		tGSOrderVO.quantUnit = aResultSet.getString("P9") == null ? "" : aResultSet.getString("P9").trim();
		
		
        return tGSOrderVO;
    }
	
}
